<template>
	<view class="content">
		<view class="title">{{notice.noticeTitle}}</view>
		<view class="time">发布时间：{{notice.createTime}}</view>
		<view class="text" v-html="notice.noticeContent">
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				notice:{}
			}
		},
		onLoad(e) {
			this.queryNotice(e.noticeId)
		},
		methods: {
			queryNotice(noticeId){
				this.$api({
					url:`/notice/${noticeId}`,
					method: "POST",
					content:'application/x-www-form-urlencoded'
				}).then(res=>{
					this.notice=res.data
				})
			},
		}
	}
</script>

<style lang="scss">
	page {
		background: #fff;
	}
	.content {
		padding: 60rpx;
	}
	.title {
		font-size: 36rpx;
	}
	.time {
		font-size: 24rpx;
		margin-top: 10rpx;
		color: #999;
	}
	.text {
		font-size: 28rpx;
		margin-top: 40rpx;
		p {
			margin: 10rpx 0 0;
		}
		image {
			width: 100%;
		}
	}
</style>
